﻿using System;
using System.Linq;

class CompareCharArrays
{
    static void Main()
    {
        Console.Write("Number of elements of arrays:");
        int arrayLength = int.Parse(Console.ReadLine());

        char[] firstArray = new char[arrayLength];
        char[] secondArray = new char[arrayLength];

        for (int i = 0; i < firstArray.Length; i++)
        {
            Console.Write("\nChar element a[{0}]:", i);
            firstArray[i] = char.Parse(Console.ReadLine());
        }

        for (int i = 0; i < secondArray.Length; i++)
        {
            Console.Write("\nChar element b[{0}]:", i);
            secondArray[i] = char.Parse(Console.ReadLine());
        }

        for (int i = 0; i < arrayLength; i++)
        {
            if (firstArray[i] < secondArray[i])
            {
                Console.Write("\na[{0}] < b[{0}] because {1} < {2}", i, (int)firstArray[i], (int)secondArray[i]);
            }
            else if (firstArray[i] > secondArray[i])
            {
                Console.Write("\na[{0}] > b[{0}] because {1} > {2}", i, (int)firstArray[i], (int)secondArray[i]);
            }
            else
            {
                Console.Write("\na[{0}] = b[{0}] because {1} = {2}", i, firstArray[i], secondArray[i]);
            }
        }
        Console.WriteLine();
    }
}